package com.wgts.wgts.netmodle.req;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/*
 *
 *
 *   data:2018/10/614:26
 *
 */public class AffirmOrderRequest implements Parcelable{
    public AffirmOrderRequest(){
        products = new ArrayList<>();
    }
    public ArrayList<AffirmOrderProduct> products;

    protected AffirmOrderRequest(Parcel in) {
        products = in.createTypedArrayList(AffirmOrderProduct.CREATOR);
    }

    public static final Creator<AffirmOrderRequest> CREATOR = new Creator<AffirmOrderRequest>() {
        @Override
        public AffirmOrderRequest createFromParcel(Parcel in) {
            return new AffirmOrderRequest(in);
        }

        @Override
        public AffirmOrderRequest[] newArray(int size) {
            return new AffirmOrderRequest[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(products);
    }
}
